import { makeAutoObservable } from 'mobx'
class Store {
  // 初始化状态
  bannerList = []
  proList = []
  constructor () {
    makeAutoObservable(this) // 可被观察
  }
  
  get bannerLen () {
    return this.bannerList.length
  }
  changeBannerList (payload) {
    console.log('111', payload)
    this.bannerList = payload
    console.log('222', this.bannerList)
  }
  changeProList (payload) {
    this.proList = payload
  }

}

export default new Store()